package com.tte.common.model.vo;

import com.tte.common.model.po.User;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 测试数据
 * @Author: DongWH
 */
@Component
public class TestData {

    public String testData;
    public static String[] nums = {"a","b","c","1","2","3","张三","李四","王五"};
    public static List<String> a = new ArrayList<String>() {//这个大括号 就相当于我们  new 接口
        {//这个大括号 就是 构造代码块 会在构造函数前 调用
            this.add("a");
            this.add("b");
            this.add("c");
            this.add("1");
            this.add("2");
            this.add("3");
            this.add("张三");
            this.add("李四");
            this.add("王五");
        }
    };
    public static List<User> userList = new ArrayList<User>() {//这个大括号 就相当于我们  new 接口
        {//这个大括号 就是 构造代码块 会在构造函数前 调用
            this.add(new User("","admin","张三",0,new Date()));
            this.add(new User("","zhang","李四",0,new Date()));
            this.add(new User("","wangw","王五",0,new Date()));
            this.add(new User("","zhaol","赵六",0,new Date()));
            this.add(new User("","zhoul","周莉",0,new Date()));
            this.add(new User("","wuna","吴娜",0,new Date()));
            this.add(new User("","Alis","Alis",0,new Date()));
            this.add(new User("","Json","Json",0,new Date()));
            this.add(new User("","Toms","Toms",0,new Date()));
        }
    };
}
